# 环境
FROM registry.getech.cn/dip/java:8u40
# 作者信息
MAINTAINER zhanwei.wu "zhanwei.wu@getech.cn"
# 将本地文件tmp挂载到容器
VOLUME /tmp
# 拷贝jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENV  LANG="C.UTF-8"
## ADD target/temp_file.xlsx  /tmp/temp_file.xlsx
ADD data-metadata-web/target/data-metadata-web-micro-3.0.9-dev-SNAPSHOT-exec.jar  /data-metadata-micro-3.0-SNAPSHOT-exec.jar
# 设置暴露的端口号
EXPOSE 18013
# 执行命令
ENTRYPOINT ["java","-jar","/data-metadata-micro-3.0-SNAPSHOT-exec.jar","--spring.config.location=config/application.yml,config/application-dev.yml"]
